import request from '@/utils/request'

// 查询确报和舱单信息
export function queryMftBdVehicles(query) {
  return request({
    url: '/kmwlpts/bindingRoadTransport/queryQb',
    method: 'post',
    params: query
  })
}

export function queryMftsBdVehicles(query) {
  return request({
    url: '/kmwlpts/bindingRoadTransport/queryMft',
    method: 'post',
    params: query
  })
}


// 查询运输工具确报列表
export function listBindingRoadTransport(query) {
  return request({
    url: '/kmwlpts/bindingRoadTransport/list',
    method: 'get',
    params: query
  })
}

// 查询运输工具确报详细
export function getBindingRoadTransport(id) {
  return request({
    url: '/kmwlpts/bindingRoadTransport/' + id,
    method: 'get'
  })
}

// 新增运输工具确报
export function addBindingRoadTransport(data) {
  return request({
    url: '/kmwlpts/bindingRoadTransport',
    method: 'post',
    data: data
  })
}

// 修改运输工具确报
export function updateBindingRoadTransport(data) {
  return request({
    url: '/kmwlpts/bindingRoadTransport',
    method: 'put',
    data: data
  })
}

// 删除运输工具确报
export function delBindingRoadTransport(id) {
  return request({
    url: '/kmwlpts/bindingRoadTransport/' + id,
    method: 'delete'
  })
}

// 导出运输工具确报
export function exportBindingRoadTransport(query) {
  return request({
    url: '/kmwlpts/bindingRoadTransport/export',
    method: 'get',
    params: query
  })
}
